package com.project.lx.gettxtfilename.main;

import android.content.Context;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

/**
 * @author: X_Meteor
 * @description: 类描述
 * @version: V_1.0.0
 * @date: 2017/7/10 21:51
 * @company:
 * @email: lx802315@163.com
 */
public class RecycleViewUtils {

    /**
     * 设置简单分割线的垂直管理器
     * @param context
     * @param recyclerView
     */
    public static void getVerticalLayoutManager(Context context, RecyclerView recyclerView) {
        RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(context, LinearLayoutManager.VERTICAL, false);
        recyclerView.setLayoutManager(layoutManager);
        recyclerView.addItemDecoration(new SimpleDicider());
    }

}
